home *** CD-ROM | disk | FTP | other *** search
- unit TstChkU3;
-
- interface
-
- uses
- WinProcs, WinTypes, Messages, SysUtils, Classes, Graphics, Controls,
- Forms, Dialogs, NewChk3, StdCtrls;
-
- type
- TForm1 = class(TForm)
- Button1: TButton;
- Button2: TButton;
- NewCheck3: TNewCheck3;
- procedure NewCheck3KeyDown(Sender: TObject; var Key: Word;
- Shift: TShiftState);
- private
- { Private declarations }
- public
- { Public declarations }
- end;
-
- var
- Form1: TForm1;
-
- implementation
-
- {$R *.DFM}
-
- procedure TForm1.NewCheck3KeyDown(Sender: TObject; var Key: Word;
- Shift: TShiftState);
- begin
- case Key of
- vk_Up: NewCheck3.Caption := 'Up';
- vk_Down: NewCheck3.Caption := 'Down';
- end;
- end;
-
- end.
-